<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../ext-patch.css">
<title>HtmlEditor Picture Plugins Demo</title>
<style type="text/css">

</style>
</head>


<body>
<div id="loading-mask" style=""></div>
<div id="loading">
    <div class="loading-indicator"><img src="../img/extanim32.gif" style="margin-right:8px;float:left;vertical-align:top; margin:10px 5px;"/>ϵͳ������...<br /><span id="loading-msg">������ʽ���ͼƬ��Դ...</span></div>
</div>


	<script type="text/javascript">document.getElementById('loading-msg').innerHTML = '�����ں˿�...';</script>
	<script type="text/javascript" src="../adapter/ext/ext-base.js"></script>
	<script type="text/javascript">document.getElementById('loading-msg').innerHTML = '����������...';</script>
	<script type="text/javascript" src="../ext-all.js"></script>
	<script type="text/javascript">document.getElementById('loading-msg').innerHTML = '��������֧��...';</script>
	<script type="text/javascript" src="../src/locale/ext-lang-zh_CN_GB2312.js"></script>
	<script type="text/javascript">document.getElementById('loading-msg').innerHTML = '������չ��...';</script>
	<script type="text/javascript" src="js/Ext.ux.form.HtmlEditor.Picture.js"></script>
	<link rel="stylesheet" type="text/css" href="js/Ext.ux.form.HtmlEditor.Picture.css" />
	<script type="text/javascript" src="js/swfupload.js"></script>

<div id="tabs" style="margin:15px 0;"></div> 
</body>
<script type="text/javascript">
Ext.onReady(function(){
	var fun_hideMask = function () {
	        Ext.get('loading').remove();
        	Ext.fly('loading-mask').fadeOut({
	            remove:true,
		    callback:function()
		    {
			Ext.QuickTips.init();
			new Ext.form.HtmlEditor({
    				renderTo: Ext.getBody(),
    				width: 600,
    				height: 300,
				plugins: [
					new Ext.ux.form.HtmlEditor.Divider(),
          			      new Ext.ux.form.HtmlEditor.Picture({
            			    		uploadUrl:'php/up-img.php',
	          			      	downloadUrl:'php/get-images.php',
        			        	flashUrl:'js/swfupload.swf'
			                })
		      		]
			});
		    }

		});
	    }
	fun_hideMask.defer(250);
});
</script>
</html>